package com.rpj.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.rpj.entity.StuEntity;



public interface LoginDao extends JpaRepository<StuEntity, String>,JpaSpecificationExecutor<String>{
@Query(value="select * from students where stuname=?1 and stupassword=?2",nativeQuery = true)
StuEntity login(String stuname,String stupassword);
}
